<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>DXBAY <s:text name="dxbay.page.title"/></title>
		<link type="text/css" rel="stylesheet" media="all" href="css/base.css" />
		<link rel="shortcut icon" href="images/shortcut.png" type="image/x-icon" />
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript">
			$().ready(function() {
				var $captchaImage = $("#captchaImage");				
				// 刷新验证码图片
				$captchaImage.click( function() {
					$captchaImage.attr("src", "captcha.jpg?t" + new Date().getTime());
				});			
			});
		</script>
				<script type="text/javascript">
			var _gaq = _gaq || [];
			_gaq.push(['_setAccount', 'UA-28785793-2']);
			_gaq.push(['_trackPageview']);
			(function() {
				var ga = document.createElement('script'); 
				ga.type = 'text/javascript'; 
				ga.async = true;
				ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
				var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
			})();
		</script>
	</head>
	<body>
		<!-- header -->	
		<div>
			<a href="<%=basePath%>?locale=zh_CN">中文</a>
			<a href="<%=basePath%>?locale=en_US">英文</a>
		</div>	
		<!--end header-->
		<!-- content -->
		<div>
			<h1><s:text name="register"/></h1>
			<s:fielderror/>
			<form action="merchantRegisterAction.do" method="post">
			    <s:label key="email"/><s:textfield name="merchant.merchantEmail" tabindex="1"/><br/>
			    <s:label key="password"/><s:password name="merchant.merchantPassword" tabindex="2"/><br/>
			    <s:label key="validcode"/><s:textfield name="validcode" maxlength="4" tabindex="3"/><img src="captcha.jpg" class="captchaImage"  id="captchaImage" title="click to refresh" alt="captcha.jpg"/><br/>
			    <s:submit key="login" tabindex="4"/>
			</form>
		</div>
		<!-- end content -->
		<!--footer-->
		<!--endfooter-->
	</body>
</html>